package com.ftg.learn.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 数据字典表
 * </p>
 *
 * @author kangjx
 * @since 2023-05-09
 */
@TableName("sys_dict")
@ApiModel(value = "Dict对象", description = "数据字典表")
public class Dict implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("字典主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("父节点")
    private Long parentId;

    @ApiModelProperty("字典名称|标签")
    private String dictName;

    @ApiModelProperty("字典描述|对应值")
    private String dictValue;

    @ApiModelProperty("字典状态|状态(0代表启用,1代表禁用)")
    private Boolean dictStatus;

    @ApiModelProperty("字典创建时间")
    private LocalDateTime gmtCreate;

    @ApiModelProperty("字典修改时间")
    private LocalDateTime gmtModified;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getDictName() {
        return dictName;
    }

    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    public String getDictValue() {
        return dictValue;
    }

    public void setDictValue(String dictValue) {
        this.dictValue = dictValue;
    }

    public Boolean getDictStatus() {
        return dictStatus;
    }

    public void setDictStatus(Boolean dictStatus) {
        this.dictStatus = dictStatus;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "Dict{" +
            "id = " + id +
            ", parentId = " + parentId +
            ", dictName = " + dictName +
            ", dictValue = " + dictValue +
            ", dictStatus = " + dictStatus +
            ", gmtCreate = " + gmtCreate +
            ", gmtModified = " + gmtModified +
        "}";
    }
}
